package com.baizhi.stringx;

/**
 * StringBuilder修改字符串内容的性能检测
 */
public class StringBuilderDemo1 {
    public static void main(String[] args) {
        String str = "a";
        StringBuilder sb = new StringBuilder(str);

        for (int i = 0; i < 10000000; i++) {
            sb.append("a");
        }
        System.out.println(sb);
    }
}
